package custom;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.qianfeng.lingshijia.R;

/**
 * Created by Mr.xingkong on 2016/1/18.
 */
public class ShoppingItem_headView extends LinearLayout {

    TextView store_name;
    public CheckBox check;
    public ShoppingItem_headView(Context context) {
        super(context);
        initView(context);
    }

    public ShoppingItem_headView(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView(context);
    }

    private void initView(Context context)
    {
        LayoutInflater.from(context).inflate(R.layout.shoppingitem_head,this);
        store_name = (TextView) findViewById(R.id.store_name);
        check = (CheckBox) findViewById(R.id.scGoodSelect);

    }

    public void setData(String data)
    {
        store_name.setText(data);//设置店名
    }
}
